package com.hbx.residential_service.controller;

import com.hbx.residential_service.domain.Notice;
import com.hbx.residential_service.service.NoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/notice")
public class NoticeController {
    @Autowired
    private NoticeService noticeService;
    @RequestMapping("/add.do")
    public String InsertNotice(Notice notice){
        noticeService.InsertNotice(notice);
        return "admin-main";
    }
}
